<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>index form</title>
</head>
<body>
	<form action="common/getInfo2" method="post" enctype="multipart/form-data">
		<input type="text" id="username" name="username" value="admin"><br />
		<input type="text" id="password" name="password" value="adminpass"><br />
		<input type="file" name="uploadFile" /><br />
		<button>submit</button>
	</form>
	
	<form action="common/getArticle" method="post" >
		<button type="submit">查看article</button>
	</form>
	<%=path %><br />
	<%=basePath %>
</body>
</html>